package Problem;

//
// Created by ✎﹏ℳ๓独赏☆独醉 on 2024/1/14.
// 
public class 求分数 {
    public static void main(String[] args) {
        int fz = 1;
        int fm = 1;
        int sum = 0;
        for (int i = 0; i <20; i++) {
            sum += fz;
            fm*=2;
            sum*=2;
        }
        int temp,max=sum,min=fm;
        while(min!=0){
            temp=max%min;
            max=min;
            min = temp;

        }

        System.out.printf("%d/%d",sum/max,fm/max);
//        int firstfm = 1, firstfz = 1;
//        for (int i = 1; i < 20; i++)
//        {
//            firstfm *= 2;
//            firstfz += firstfm;
//        }
//        System.out.printf ("%d/%d\n",firstfz,firstfm);
    }
}
